﻿namespace Arbalest.Models
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.ComponentModel;
    using System.ComponentModel.DataAnnotations;
    using System.Data.Objects.DataClasses;
    using System.Runtime.Serialization;
    using System.Xml.Serialization;
    using Arbalest.Web.Controllers;

    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    public class xxxPortfolio
    {
        [DisplayName("Code")]
        [Required(ErrorMessage="Code is required")]
        public string Code { get; set; }

        [DisplayName("Name")]
        [Required(ErrorMessage = "Name is required")]
        public string Name { get; set; }
        
        [DisplayName("Description")]
        public string Description { get; set; }

        [DisplayName("Portfolio creation date")]
        [DataType(DataType.Date)]
        [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}", ApplyFormatInEditMode = true)]
        public DateTime CreatedDateTime { get; set; }

        [DisplayName("Last correction date")]
        [Required(ErrorMessage = "Last correction date is required")]
        [DataType(DataType.Date)]
        [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}", ApplyFormatInEditMode = true)]
        public DateTime LastCorrectionDateTime { get; set; }

        [DisplayName("Next correction date")]
        [Required(ErrorMessage = "Next correction date is required")]
        [DataType(DataType.Date)]
        [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}", ApplyFormatInEditMode = true)]
        public DateTime NextCorrectionDateTime { get; set; }
    }
}